package com.thwj.project.biz.enums;

/***
 * 运营banner 跳转类型
 */
public enum BannerActionTypeEnum {

    /***
     * 小程序页面
     */
    path(1,"小程序页面"),
    /**
     * h5链接
     */
    H5(2,"h5链接"),
    ;
    BannerActionTypeEnum(int value, String name){
        this.name = name;
        this.value = value;
    }

    private int value;
    private String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static BannerActionTypeEnum getEnumByValue(Integer value){
        for (BannerActionTypeEnum typeEnum : BannerActionTypeEnum.values()) {
            if(typeEnum.value == value) {
                return typeEnum;
            }
        }
        return null;
    }
}
